<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            padding: 0;
            margin: 0;
            box-sizing: border-box;
        }

        ::-webkit-scrollbar {
            display: none;
        }

        body,html{
            width: 100%;
            height: 100%;
        }

        body {
            background-color: rgb(237, 236, 234);
            position: relative;
        }

        h3 {
            height: 30px;
            margin: 20px 10px;
        }

        .remen,
        .hongbao {
            background-color: white;
            width: 95%;
            margin: 0 auto;
            border-radius: 10px;
            margin: 10px;
            padding: 10px;
        }

        .title {
            font-weight: 800;
            margin-bottom: 10px;
        }

        .list {
            width: 100%;
        }

        .item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 15px;
            width: 100%;
        }

        .item .left {
            display: flex;
        }

        .item .left .you {
            margin-left: 10px;
        }

        .item .left .tu {
            position: relative;
        }

        .item .left img {
            width: 80px;
            height: 80px;
            border-radius: 5px;
        }

        .item .left .zi {
            font-size: 12px;
            color: rgb(255, 255, 255);
            position: absolute;
            width: 100%;
            padding: 0 5px;
            left: 0;
            bottom: 4px;
            border-radius: 5px;
            background-color: rgba(8, 8, 8, 0.155);
        }

        .item .left .name {
            font-size: 14px;
            font-weight: 800;
        }

        .item .left .main {
            font-size: 12px;
            font-weight: 800;
            color: rgb(234, 122, 41);
        }

        .item .left .jiage {
            font-size: 14px;
            font-weight: 800;
            color: rgb(250, 61, 61);
        }

        .item .left .dizhi {
            font-size: 12px;
            color: gray;
            margin-top: 10px;
        }

        .item .right button {
            width: 80px;
            height: 26px;
            border: 0;
            color: white;
            border-radius: 13px;
            background-color: rgb(237, 161, 40);

        }

        .hongbaolist {
            width: 100%;
            display: flex;
            overflow: auto;
        }

        .neirong {
            margin-left: 15px;
        }

        .jine,
        .tiaojian {
            width: 86px;
            height: 50px;
            background-color: rgb(240, 251, 225);
            border-radius: 5px;
            color: rgb(245, 84, 84);
            font-size: 25px;
            font-weight: 800;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }

        .tiaojian {
            height: 30px;
            font-size: 12px;
            display: flex;
            justify-content: space-around;
            align-items: center;

        }

        .liexing {
            margin-top: 10px;
            font-size: 14px;
            font-weight: 800;
        }

        footer {
            width: 100%;
            height: 50px;
            display: flex;
            justify-content: space-around;
            position: absolute;
            bottom: 0;
            left: 0;
            line-height: 50px;
            background-color: white;
        }
    </style>
</head>

<body>
    <div id="app">
        <h3>&lt; 饿了么</h3>
        <div class="listt">
            <div class="remen">
                <div class="title">热门单品</div>
                <div class="list">
                    <div class="item" v-for="(item,index) in tasklist" v-bind:key="index">
                        <div class="left">
                            <div class="tu">
                                <img v-bind:src="item.pic" alt="">
                                <div class="zi">价值 ￥{{ item.jiazhi }}</div>
                            </div>
                            <div class="you">
                                <div class="name">{{ item.name }}</div>
                                <div class="main">{{ item.main }}</div>
                                <div class="jiage">{{ item.jiage }}</div>
                                <div class="dizhi">{{ item.dizhi }}></div>
                            </div>
                        </div>


                        <div class="right">
                            <button>{{ item.static == 1 ? '立即兑换' : '已兑换' }}</button>
                        </div>
                    </div>
                </div>
            </div>
            <div class="hongbao">
                <div class="title">通用红包限时兑</div>
                <div class="hongbaolist">
                    <div class="neirong" v-for="(item,index) in tacklist1" v-bind:key="index">
                        <div class="jine">{{ item.jine }}</div>
                        <div class="tiaojian">{{ item.tiaojian }}</div>
                        <div class="liexing">{{ item.liexing }}</div>
                    </div>
                </div>
            </div>
        </div>
        <footer>
            <div>首页</div>
            <div>吃货卡</div>
            <div>订单</div>
            <div>我的</div>
        </footer>
    </div>
</body>

</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue({
        el: '#app',
        data: {
            tasklist: [
                { id: 1, pic: './img/1.png', jiazhi: '9.9', name: '新鲜橙子', main: '兑换后入手价8.9元', jiage: '10', dizhi: '通用门店', static: 1 },
                { id: 2, pic: './img/1.png', jiazhi: '12.0', name: '新鲜橘子', main: '兑换后入手价9.9元', jiage: '30', dizhi: '通用门店', static: 1 },
                { id: 3, pic: './img/2.png', jiazhi: '12.0', name: '新鲜水果捞', main: '兑换后入手价6.9元', jiage: '60', dizhi: '通用门店', static: 1 },
            ],
            tacklist1: [
                { id: 1, jine: '5', tiaojian: '满30可用', liexing: '吃货联盟红包' },
                { id: 2, jine: '5', tiaojian: '满30可用', liexing: '吃货联盟红包' },
                { id: 3, jine: '8', tiaojian: '满50可用', liexing: '吃货联盟红包' },
                { id: 4, jine: '8', tiaojian: '满50可用', liexing: '吃货联盟红包' },
            ]
        }
    })

</script>